package com.ak.es.index;

/**
 * @program: AK-ES
 * @description: 索引结构基础方法接口
 * @author: AK
 * @create: 2019-01-25 16:52
 **/
public interface ElasticsearchIndex<T> {
	/**
	 * 创建索引
	 * 
	 * @param clazz
	 * @throws Exception
	 */
	public void createIndex(Class<T> clazz) throws Exception;

	/**
	 * 删除索引
	 * 
	 * @param clazz
	 * @throws Exception
	 */
	public void dropIndex(Class<T> clazz) throws Exception;

	/**
	 * 索引是否存在
	 * 
	 * @param clazz
	 * @throws Exception
	 */
	public boolean exists(Class<T> clazz) throws Exception;

}
